import os

import pytest

from config import report_json_path, report_html_path

if __name__ == '__main__':
    # pytest.main([r'./test','-vvvs','-m','jiia'])
    # pytest.main(['-vvvs','-m','jian'])
    # pytest.main(['-vvvs', '-m', 'cheng'])
    # pytest.main(['-vvvs', '-m', 'chu'])
    pytest.main(['-vvvs',
                 f'--alluredir={report_json_path}',
                 '--clean-alluredir'])
    os.system(f'allure generate {report_json_path} -o {report_html_path} --clean')